from server.api.sys.role import r_role
from server.api.sys.sys_log import r_sys_log
from server.api.sys.sys_login_record import r_sys_login_record
from server.api.sys.sys_user import sys_user
from server.api.sys.route import r_route
from server.api.order import r_order
from .app_user import r_app_user


def init_api_route(app):
    app.register_blueprint(sys_user, url_prefix='/sys_user')
    app.register_blueprint(r_role, url_prefix='/role')
    app.register_blueprint(r_sys_log, url_prefix='/sys_log')
    app.register_blueprint(r_sys_login_record, url_prefix='/sys_login_record')
    app.register_blueprint(r_route, url_prefix='/route')
    app.register_blueprint(r_order, url_prefix='/order')
    app.register_blueprint(r_app_user, url_prefix='/app_user')

